package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.ProfileDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenm
 * @create 2019-11-27 9:52
 */
public interface ProfileDetailMapper {

  List<ProfileDetail> selectByMatId(@Param("matId") Integer matId);

  int delDetailsByUuid(@Param("uuidList") List<String> uuidList);

  int addDetails(@Param("addDetails") List<ProfileDetail> addDetails);

  int updateDetails(@Param("updeteDetails") List<ProfileDetail> updeteDetails);

  int delProfileDetailByProfileIds(@Param("profileIds") List<Integer> profileIds);

  List<ProfileDetail> selectByMatIdAndMatVerId(@Param("matId")Integer matId, @Param("matVerId")Integer matVerId);


  /**
   * 查询工艺文件库使用的工序
   * @param proIds
   * @author loukai
   */
  int queryUsePro(@Param("proIds") Long[] proIds);
}
